//const关键字的使用
#include <stdio.h>

int main(void)
{
	//const int num = 66;
	int const num = 66;
	printf("num = %d\n",num);
	//num = 118; 不能修改只读变量的值
	//printf("num = %d\n",num);
	
	printf("-------------------\n");
	int* pNum = &num;
	printf("pNum = %p,*pNum = %d\n",pNum,*pNum);
	int data = 118;
	pNum = &data;
	printf("pNum = %p,*pNum = %d\n",pNum,*pNum);

	printf("------------------\n");
	//const int* p;
	//int const *p;
	//int* const p;
	const int* const p;
	//int* p const; 错误的
	p = &data;
	*p = 200;
	return 0;
}
